using UnityEngine;

namespace UnityStandardAssets.CrossPlatformInput
{
	public class JumpButtonHandler : MonoBehaviour
	{
		[SerializeField]
		private string _name;

		[SerializeField]
		private string _flyEnable;

		[SerializeField]
		private GameObject _flyMode;

		public void FlyEnable()
		{
			_flyMode.SetActive(value: true);
			base.gameObject.SetActive(value: false);
			CrossPlatformInputManager.SetButtonUp(_flyEnable);
		}

		public void SetDownState()
		{
			CrossPlatformInputManager.SetButtonDown(_name);
		}

		public void SetUpState()
		{
			CrossPlatformInputManager.SetButtonUp(_name);
		}

		public void SetAxisPositiveState()
		{
			CrossPlatformInputManager.SetAxisPositive(_name);
		}

		public void SetAxisNeutralState()
		{
			CrossPlatformInputManager.SetAxisZero(_name);
		}

		public void SetAxisNegativeState()
		{
			CrossPlatformInputManager.SetAxisNegative(_name);
		}

		public void Update()
		{
		}
	}
}
